package edu.xhu.model.behavior.pojos;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.Date;

@ApiModel(value = "bili用户聊天表")
@Data
@Accessors(chain = true)
@TableName("bili_user_chat")
public class BiliUserChat {

    /**
     * 聊天表主键id
     */
    @ApiModelProperty(name = "聊天表主键id", notes = "")
    private Long chatId;
    /**
     * 发起聊天的人
     */
    @ApiModelProperty(name = "发起聊天的人", notes = "")
    private Long userId;
    /**
     * 消息接收者
     */
    @ApiModelProperty(name = "消息接收者", notes = "")
    private Long toId;
    /**
     * 是否移除聊天
     */
    @ApiModelProperty(name = "是否移除聊天", notes = "")
    private String isDelete;
    /**
     * 未读数
     */
    @ApiModelProperty(name = "未读数", notes = "")
    private Integer unRead;
    /**
     * 最后接受消息时间或最近打开聊天窗口时间
     */
    @ApiModelProperty(name = "最后接受消息时间或最近打开聊天窗口时间", notes = "")
    private Date lastTime;
    /**
     * 是否群聊
     */
    @ApiModelProperty(name = "是否群聊", notes = "")
    private String isGroup;
}
